package com.zlc.common.core.position.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlc.common.core.position.model.entity.MayanPlatPositionUser;
import com.zlc.common.core.user.model.vo.MayanPlatUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author  zl
 * @date 2023-05-08 
 */
@Mapper
public interface MayanPlatPositionUserMapper extends BaseMapper<MayanPlatPositionUser> {

    List<MayanPlatUserVo> queryByDeptCodeAndPositionCode(@Param(value = "deptCode") String deptCode, @Param(value = "positionCode")String positionCode);

    List<MayanPlatUserVo> queryUserByDeptCode(@Param(value = "deptCodes") List<String> deptCodes);

    int deleteByPositionCodes(@Param(value = "positionCodes")List<String> positionCodes);
}
